import { defineStore } from "pinia";
import { Names } from "../store-namespace";
import { _get, _post, _put, _delete, http } from "@/utils/axios";
// import { devicesList } from "../../../virtual";

export const useBuiness = defineStore(Names.business, {
  state: () => {
    return {
      loading: false,
      query: "", //设备接入企业的id
      item: {
        id: 3166,
        name: "江苏融知达信息科技有限公司", //企业名称
        department_id: 3,
        sn: "91320402MA1XNB5X6C", //企业社会信用代码
        contact: "周伟军", //联系人
        tel: "13092582600", //联系电话
        contact2: "",
        tel2: "",
        address: "", //地址
        bank: "", //指定银行
        bank_manager: "", //银行客户经理
        bank_tel: "",
        city_id: 1,
        city_name: "常州市",
        area_id: 4,
        area_name: "新北区",
        industry_id: 9,
        industry_name: "其他制造业", //所属行业
        hours: 4,
        status: 1,
        create_time: "2022-11-02 08:23:06", //创建时间
        update_time: "2022-11-09 17:10:09", //更新时间
        is_delete: 0,
        ip: "127.0.0.1",
        lat: "",
        log: "",
        status_text: "正常", //状态
      },
    };
  },
  getters: {},
  actions: {
    // getDeviceList() {
    //   return new Promise((resolve, reject) => {
    //     resolve(devicesList);
    //   });
    // },
  },
});
